package com.lmx.repoDomain.tmodel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import io.katharsis.resource.annotations.JsonApiResource;

/**
 * Created by qin on 2016/6/20.
 */
@JsonApiResource(type = "taskextend")
@Entity
@Table(name = "ccd_task_extend")
public class TaskExtend extends BaseEntity{
    private String code;
    private Double money;// 任务使用金额
    private Integer calloutNum;// 全部外呼数量
    private Integer callinNum;// 全部内呼数量
    private Integer callinAveDuration;// 呼入平均时长，单位：秒
    private Integer calloutAveDuration;// 呼出平均时长。单位：秒
    private Integer calloutNumToday;// 当天外呼数量
    private Integer callinNumToday;// 当天内呼数量
    private Integer callinAveDurToday;// 当天呼入平均时长
    private Integer calloutAveDurToday;// 当天呼出平均时长
    private Integer csNeed;// 需要客服数量
    private Integer csHave;// 已招客服数量

    @Column(name = "code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Column(name = "money")
    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    @Column(name = "callout_num")
    public Integer getCalloutNum() {
        return calloutNum;
    }

    public void setCalloutNum(Integer calloutNum) {
        if(calloutNum == null){
            calloutNum = 0;
        }
        this.calloutNum = calloutNum;
    }

    @Column(name = "callin_num")
    public Integer getCallinNum() {
        return callinNum;
    }

    public void setCallinNum(Integer callinNum) {
        if(callinNum == null){
            callinNum = 0;
        }
        this.callinNum = callinNum;
    }

    @Column(name = "callin_ave_duration")
    public Integer getCallinAveDuration() {
        return callinAveDuration;
    }

    public void setCallinAveDuration(Integer callinAveDuration) {
        if(callinAveDuration == null){
            callinAveDuration = 0;
        }
        this.callinAveDuration = callinAveDuration;
    }

    @Column(name = "callout_ave_duration")
    public Integer getCalloutAveDuration() {
        return calloutAveDuration;
    }

    public void setCalloutAveDuration(Integer calloutAveDuration) {
        if(calloutAveDuration == null){
            calloutAveDuration = 0;
        }
        this.calloutAveDuration = calloutAveDuration;
    }

    @Column(name = "callout_num_today")
    public Integer getCalloutNumToday() {
        return calloutNumToday;
    }

    public void setCalloutNumToday(Integer calloutNumToday) {
        if(calloutNumToday == null){
            calloutNumToday = 0;
        }
        this.calloutNumToday = calloutNumToday;
    }

    @Column(name = "callin_num_today")
    public Integer getCallinNumToday() {
        return callinNumToday;
    }

    public void setCallinNumToday(Integer callinNumToday) {
        if(callinNumToday == null){
            callinNumToday = 0;
        }
        this.callinNumToday = callinNumToday;
    }

    @Column(name = "callin_ave_dur_today")
    public Integer getCallinAveDurToday() {
        return callinAveDurToday;
    }

    public void setCallinAveDurToday(Integer callinAveDurToday) {
        if(callinAveDurToday == null){
            callinAveDurToday = 0;
        }
        this.callinAveDurToday = callinAveDurToday;
    }

    @Column(name = "callout_ave_dur_today")
    public Integer getCalloutAveDurToday() {
        return calloutAveDurToday;
    }

    public void setCalloutAveDurToday(Integer calloutAveDurToday) {
        if(calloutAveDurToday == null){
            calloutAveDurToday = 0;
        }
        this.calloutAveDurToday = calloutAveDurToday;
    }

    @Column(name = "csneed")
    public Integer getCsNeed() {
        return csNeed;
    }

    public void setCsNeed(Integer csNeed) {
        this.csNeed = csNeed;
    }

    @Column(name = "cshave")
    public Integer getCsHave() {
        return csHave;
    }

    public void setCsHave(Integer csHave) {
        if(csHave == null){
            csHave = 0;
        }
        this.csHave = csHave;
    }
}
